<?php

/**
 * View the exception messages
 */
class ExceptionViewerController extends ExceptionBaseController
{
    public $title = "Exception List";

    /**
     * Web can use ext alias but Yii 1.0 is not supported
     * So when the user changed the structure of the project he/she have to
     * set the layout option in the config file or this exception page will
     * looks ugly
     */

    public function init()
    {
        if (Yii::app()->exception_notification->layout) {
            $this->layout = Yii::app()->exception_notification->layout;
        }
        parent::init();
    }

    public function actionIndex()
    {
        $this->render("index");
    }

}
